package com.xh.bussiness.jingyou.task;

import com.xh.bussiness.jingyou.dao.JYUserInterfaceLastMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * <p>
 *
 * </p>
 *
 * @author Pitt zhang
 * @since 2020/1/9
 */
@Component
public class InitJYUserUsedCountTask {
    @Autowired
    private JYUserInterfaceLastMapper jyUserInterfaceLastMapper;

    @Scheduled(cron = "0 0 0 * * ?")
    public void runInitJYUserUsedCountTask() {
        jyUserInterfaceLastMapper.initUserUsedCount();
    }

}
